/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.imptec.reportfly.Util;
import java.sql.*;

public class CrearConexiones {
    private Connection conn;
    private final String login = "zeus_admin"; //usuario de acceso a MySQL
    private final String password = "zeus01"; //contraseña de usuario
    private String url = "jdbc:oracle:thin:@192.168.1.215:1521:PLAT";

    public CrearConexiones() {
    }
 
    
    public Connection abrir()
    {        
        System.out.println("entro a conexion");
        try 
        {
            Class.forName("oracle.jdbc.OracleDriver"); //se carga el driver
            conn = DriverManager.getConnection(url,login,password);
        } 
        catch (ClassNotFoundException ex) 
        {
            ex.printStackTrace();
        } 
        catch (SQLException ex) 
        {
            ex.printStackTrace();
        }
        return conn;
        
        
    }
}
